-
Notifications
You must be signed in to change notification settings - Fork 561
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: split config.Registries
into the separate resource.
#9780
Conversation
bac4314
to
afa039e
Compare
config.Registry
into the separate resource.config.Registries
into the separate resource.
afa039e
to
b7bb576
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this could also remove those config definitions from the old place as well?
internal/app/machined/pkg/controllers/files/cri_registry_config.go
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the image/resolver (via PullImage) hasn't been updated
b7bb576
to
d0f1a62
Compare
@smira I think all paths leading to |
// This is a hack, but I (Dmitry) don't have enough patience to figure out why we don't support complex maps | ||
return "resource/definitions/cri/registry.proto", "talos.resource.definitions.cri.RegistryMirrorConfig" | ||
case typeData{"github.com/siderolabs/talos/pkg/machinery/resources/cri", "RegistryConfig"}: | ||
// This is a hack, but I (Dmitry) don't have enough patience to figure out why we don't support complex maps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the author gave up 😛
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah...
internal/app/machined/pkg/runtime/v1alpha1/v1alpha1_sequencer_tasks.go
Outdated
Show resolved
Hide resolved
d0f1a62
to
65d4127
Compare
Integration provision passes, so upgrades work. I'll remove the label to speed-up process. |
65d4127
to
3ffb2e1
Compare
3837e2b
to
1f4bee3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lots of other fixes here as we went through testing image cache
Missing bits:
|
should we split those into a different PR, easier to backport if needed |
this also works, probably |
1f4bee3
to
897dc60
Compare
Updated PR:
|
897dc60
to
04eed6f
Compare
@@ -127,13 +128,11 @@ func (s *Server) checkSupported(feature runtime.ModeCapability) error { | |||
|
|||
func (s *Server) checkControlplane(apiName string) error { | |||
switch s.Controller.Runtime().Config().Machine().Type() { //nolint:exhaustive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if touching this, better to refactor using .IsControlplane()
method of the machine.Type
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped all irrelevant stuff.
@@ -1228,19 +1227,19 @@ func (s *Server) Logs(req *machine.LogsRequest, l machine.MachineService_LogsSer | |||
|
|||
switch { | |||
case req.Namespace == constants.SystemContainerdNamespace || req.Id == "kubelet": | |||
var options []runtime.LogOption | |||
var opts []runtime.LogOption |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we please skip in the future changing every line for unrelated changes, and close to beta release specifically. it makes more work for reviewers.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dropped all irrelevant stuff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've already spent time reviewing it, so now it was wasted... 😭
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry! I thought you wanted me to drop this unrelated stuff.
@@ -0,0 +1,118 @@ | |||
// This Source Code Form is subject to the terms of the Mozilla Public |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the file should be registries_config.go
to match controller name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
} | ||
|
||
func (suite *ConfigSuite) TestRegistry() { | ||
cfg := config.NewMachineConfig(container.NewV1Alpha1(&v1alpha1.Config{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a missing case for missing machine config
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added TestRegistryNoMachineConfig
.
@@ -38,9 +37,9 @@ func app() error { | |||
return fmt.Errorf("failed to get user home directory: %w", err) | |||
} | |||
|
|||
it := func(yield func(fs.StatFS) bool) { | |||
it := func(yield func(string2 string) bool) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
string2
? or should be path?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be nothing, but IDE couldnt figure that out and inserted a placeholder name. Removed.
e040bbb
to
1e20ea8
Compare
Required for siderolabs#9614 Closes siderolabs#9766 Signed-off-by: Dmitriy Matrenichev <[email protected]>
1e20ea8
to
ccc5a8d
Compare
/m |
Required for #9614
Closes #9766